//
//  WayPointDataSource_WayPoints.m
//  Travel_M_Travel
//
//  Created by APPLE10 on 15-4-1.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "WayPointDataSource_WayPoints.h"

@implementation WayPointDataSource_WayPoints
- (instancetype)initWithDictionary:(NSMutableDictionary *)dic
{
    self = [super init];
    if ( self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)wayPointData_WayPointWithDic:(NSMutableDictionary *)dic
{
    WayPointDataSource_WayPoints *wayPointData = [[WayPointDataSource_WayPoints alloc]initWithDictionary:dic];
    
    return [wayPointData autorelease];
    
    
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([_idNumber isEqualToString:@"id"]) {
        _idNumber = value;
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}
@end
